package com.example.basic;

public class RunnableTest implements Runnable{
    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
        System.out.println(Thread.currentThread().getId());
        System.out.println(Thread.currentThread().getState());
        System.out.println(Thread.currentThread().getThreadGroup());
        System.out.println(Thread.currentThread().getPriority());
        System.out.println(Thread.currentThread().getContextClassLoader());
        System.out.println(Thread.currentThread().getStackTrace());
        System.out.println(Thread.currentThread().getUncaughtExceptionHandler());
        System.out.println(Thread.currentThread().getClass());
    }

    public static void main(String[] args) {
        RunnableTest runnableTest = new RunnableTest();
        RunnableTest runnableTest1 = new RunnableTest();
        Thread t = new Thread(runnableTest, "李华");
        Thread t1 = new Thread(runnableTest, "小明");
        t.start();
        t1.start();
    }
}
